module.exports = app => {
  const { STRING, INTEGER } = app.Sequelize;
  const Teachers = app.model.define('sequelize-teachers', {
    id: { type: STRING, primaryKey: true },
    name: STRING(30),
    age: INTEGER(11),
    sex: STRING(30),
  }, {
    timestamps: false, // 自动增加创建时间
    tableName: 'sequelize-teachers', // 设置表名称
  });
  return Teachers;
};

